package com.codingman.springdemo3;

public class Foo2 {

	public void abc(int i) {
		if (i < 18) {
			throw new ArithmeticException("Not valid age");
		} else {
			System.out.println("It is Ok");
		}
	}

}
